<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
<div id='adddownload_ajaxResponse' class="ajaxResponse"></div>
<h2>{t}Add download{/t}</h2>
<form name="adddownload" id="adddownload" enctype="multipart/form-data" method="post" action="?mod={$smarty.get.mod}">
	<input type="hidden" name="act" value="adddownload"/>
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="download_name">{t}Name:{/t}</label></th>
			<td width="67%">
			<input name="download_name" id="download_name" type="text" value="" size="50" maxlength="100" /></td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="cat_parent">{t}Product:{/t}</label></th>
			<td>        
	  			<select name='product_id' id='product_id' class='postform'>
	  				<option value='0'>{t}None{/t}</option>
		  			{foreach name=cat from=$PRODUCTS item=item}
						<option id='product-{$item->product_id}' value='{$item->product_id}'>
						{$item->product_name}
					</option>
					{/foreach}
				</select>
	  		</td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="where">{t}Where:{/t}</label></th>
			<td>        
	  			<select name='where_id' id='where_id' class='postform'>
	  				<option value='Download'>{t}Download{/t}</option>		
					<option value='Support'>{t}Support{/t}</option>
					
				</select>
	  		</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="file">{t}Download file:{/t}</label></th>
			<td width="67%">
			<input name="file" id="file" type="file" value="" size="50" maxlength="255"/></td>
		</tr>
		
	</table>
	<p class="submit" align = "right">
		<input type="submit" name="submit" value="{t escape=no}Add Download &raquo;{/t}" />
	</p>
</form>
</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>